Automatic qubit calibration

ABSTRACT

Methods and apparatus for automatic qubit calibration. In one aspect, a method includes obtaining a plurality of qubit parameters and data describing dependencies of the plurality of qubit parameters on one or more other qubit parameters; identifying a qubit parameter; selecting a set of qubit parameters that includes the identified qubit parameter and one or more dependent qubit parameters; processing one or more parameters in the set of qubit parameters in sequence according to the data describing dependencies, comprising, for a parameter in the set of qubit parameters: performing a calibration test on the parameter; and performing a first calibration experiment or a diagnostic calibration algorithm on the parameter when the calibration test fails.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of, and claims priority to, U.S.application Ser. No. 16/743,874, filed Jan. 15, 2020, which applicationis a continuation of, and claims priority to, U.S. application Ser. No.15/948,490, filed Apr. 9, 2018, which application is a continuation ofU.S. application Ser. No. 15/178,136, now U.S. Pat. No. 9,940,212, filedJun. 9, 2016. The disclosure of each of the foregoing applications isincorporated herein by reference.

BACKGROUND

This specification relates to quantum computing.

Large-scale quantum computers have the potential to provide fastsolutions to certain classes of difficult problems. For large-scalequantum computing to be realizable, several challenges in the design andimplementation of quantum architecture to control, program and maintainquantum hardware must be overcome.

SUMMARY

This specification relates to performing calibrations of qubitparameters. In particular, this specification describes methods andapparatus for automatically maintaining and calibrating qubit parametersof a system of one or more qubits involved in a quantum computation.

In general, one innovative aspect of the subject matter described inthis specification can be implemented in a method that includes theactions of obtaining a plurality of qubit parameters and data describingdependencies of the plurality of qubit parameters on one or more otherqubit parameters; identifying a qubit parameter; selecting a set ofqubit parameters that includes the identified qubit parameter and one ormore dependent qubit parameters; processing one or more parameters inthe set of qubit parameters in sequence according to the data describingdependencies, comprising, for a parameter in the set of qubitparameters: performing a calibration test on the parameter; andperforming a first calibration experiment or a diagnostic calibrationalgorithm on the parameter when the calibration test fails.

Other implementations of this aspect include corresponding computersystems, apparatus, and computer programs recorded on one or morecomputer storage devices, each configured to perform the actions of themethods. A system of one or more computers can be configured to performparticular operations or actions by virtue of having software, firmware,hardware, or a combination thereof installed on the system that inoperation causes or cause the system to perform the actions. One or morecomputer programs can be configured to perform particular operations oractions by virtue of including instructions that, when executed by dataprocessing apparatus, cause the apparatus to perform the actions.

The foregoing and other implementations can each optionally include oneor more of the following features, alone or in combination. In someimplementations performing a first calibration experiment or adiagnostic calibration algorithm on the parameter comprises: performinga first calibration experiment on the parameter when the calibrationtest fails; and performing a diagnostic calibration algorithm on theparameter when the first calibration experiment fails due to errors thatare not attributable to the parameter.

In some implementations the method further comprises performing a secondcalibration experiment on the parameter when the first calibrationexperiment fails due to errors that are attributable to the parameter;aborting the processing of the one or more parameters in the set ofqubit parameters in sequence when the second calibration experimentfails; and flagging the parameter as a parameter that is withinspecification when the parameter passes any of the calibration test orfirst calibration experiment.

In some implementations the plurality of qubit parameters and the datadescribing dependencies of the plurality of qubit parameters on one ormore other qubit parameters are represented by a directed graphcomprising a node for each qubit parameter and a directed edge for eachdependency; identifying a qubit parameter comprises identifying a qubitparameter that corresponds to a root node; selecting a set of qubitparameters that includes the identified qubit parameter and one or moredependent qubit parameters comprises selecting a set of qubit parametersthat includes the qubit parameter that corresponds to the root node andthe qubit parameters of each descendant node, wherein the set of qubitparameters is ordered according to a node ancestry ordering; andprocessing one or more parameters in the set of qubit parameters insequence according to the data describing dependencies comprisesprocessing one or more parameters in the set of qubit parameters insequence according to the node ancestry ordering.

In some implementations performing a diagnostic calibration algorithm onthe parameter comprises: iteratively performing one or more of the firstcalibration experiment and second calibration experiment on the qubitparameter and qubit parameters that correspond to an ancestor node ofthe node of the qubit parameter until the qubit parameter and qubitparameters that correspond to an ancestor node of the node of the qubitparameter are determined to be within specification or the process isaborted, the iteratively performing comprising, for each iteration:performing the first calibration experiment on the qubit parameter; inresponse to determining the qubit parameter passes the first calibrationexperiment, flagging the parameter as a parameter that is withinspecification; and in response to determining the qubit parameter failsthe first calibration experiment due to errors that are not attributableto the parameter, selecting an ancestor parameter as the qubitparameter.

In some implementations the method further comprises in response todetermining the qubit parameter fails the first calibration experimentdue to errors that are attributable to the parameter, performing thesecond calibration experiment on the qubit parameter; in response todetermining the qubit parameter passes the second calibrationexperiment, flagging the parameter as a parameter that is withinspecification; and in response to determining the qubit parameter failsthe second calibration experiment, aborting the processing of theparameters in the set of qubit parameters.

In some implementations errors that are not attributable to theparameter comprise errors that are attributable to ancestor parameters.

In some implementations the directed graph is acyclic.

In some implementations the directed graph is cyclic.

In some implementations the number of iterations between co-dependentparameters in the selected set of qubit parameters is capped to apredetermined threshold.

In some implementations the obtained data further comprises one or moreattributes of the parameters in the set of qubit parameters including(i) a respective timeout period for which a calibration is to beperformed, and (ii) acceptable thresholds for parameter values.

In some implementations the calibration test comprises pass and failcriteria for determining when a parameter is out of specification.

In some implementations the calibration test passes if a successfulfirst or second calibration experiment has been performed on a parameterwithin a respective timeout period.

In some implementations the calibration test fails if a parameterdependence has been recalibrated within a predetermined amount of time.

In some implementations the calibration test fails if a parameterdependence fails the calibration test.

In some implementations the first calibration experiment comprises oneor more qubit experiments with respective measurement outcomes that areused to determine when a parameter is out of specification.

In some implementations the first calibration experiment fails if themeasurement outcomes of the qubit experiments comprise parameter valuesthat are out of specification.

In some implementations the second calibration experiment comprises oneor more qubit experiments with respective measurement outcomes that areused to update the value of a parameter.

In some implementations the second calibration experiment requires moretime or more hardware to complete than the first calibration experiment.

In some implementations the directed graph comprises a node for multipleparameters that are calibrated simultaneously.

In some implementations the root node comprises a root node whosecorresponding qubit parameter fails the calibration test.

In some implementations the diagnostic calibration algorithm is datadriven.

In some implementations processing one or more parameters in the set ofqubit parameters in sequence according to the data describingdependencies comprises processing each parameter in the set of qubitparameters in sequence according to the data describing dependencies.

The subject matter described in this specification can be implemented inparticular ways so as to realize one or more of the followingadvantages.

Operating a physical qubit in a useful capacity requires the carefulcalibration of qubit parameters. Since the number of qubit parametersrequired to operate a physical qubit can easily reach over fiftyparameters, efficient and effective qubit calibration is a challengingtask, particularly when considering quantum computing systems thatinclude multiple qubits. Qubit calibrations may be bootstrapped from nospecific knowledge of qubit parameters to a completely calibrated qubit.In addition, qubit calibrations are not stable and may have to berepeatedly performed during the course of one or more quantumcomputations, thus increasing the complexity of the task of calibratingqubits.

A system implementing automatic qubit calibration may efficiently andeffectively perform qubit calibration, thus increasing the reliabilityand performance of a system of one or more physical qubits, in turnimproving the reliability and performance of quantum computations.

A system implementing automatic qubit calibration performs differentqubit calibration methods at varying computational costs to determinewhether a qubit parameter is functioning correctly or not and to correcta qubit parameter that is not functioning correctly. The systemeffectively and efficiently monitors a system of qubits and appliesappropriate, cost effective procedures to correct qubits that are notoperating properly, thus achieving improved computational performanceand reduced costs associated with performing qubit calibration comparedto systems that do not implement automatic qubit calibration.

Furthermore, a system implementing automatic qubit calibrationsystematically performs the different calibration methods at varyingcomputational costs on the qubits, taking into account the dependenciesof each qubit parameter on other qubit parameters. The systematicapproach improves the computational efficiency of a system implementingautomatic qubit calibration compared to other systems that do notimplement automatic qubit calibration, since the performance ofunnecessary qubit calibration procedures or complete qubit resets areavoided whilst high levels of control and reliability are maintained.

A system implementing automatic qubit calibration utilizes knowninformation about qubit parameters to calibrate the qubit parameters,improving the quality of the calibration procedure and reducing the timerequired to successfully calibrate a qubit parameter compared to systemsthat do not implement automatic qubit calibration.

A system implementing automatic qubit calibration may be robust toerrors. When errors are encountered, the system fixes the errors andsaves information regarding the context of the calibration procedureused to fix the error. Unnecessary work and calibration is thereforeavoided.

The details of one or more implementations of the subject matter of thisspecification are set forth in the accompanying drawings and thedescription below. Other features, aspects, and advantages of thesubject matter will become apparent from the description, the drawings,and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 depicts an example system for automatic qubit calibration.

FIG. 2 is a flowchart of an example process for automatic qubitcalibration.

FIG. 3 is a flow diagram of an example qubit maintenance process forprocessing parameters in a set of qubit parameters in sequence.

FIG. 4 is a flow diagram of an example process for qubit calibration.

FIGS. 5A and 5B show example illustrations of calibrating a resonancefrequency using a first and second calibration experiment.

Like reference numbers and designations in the various drawings indicatelike elements.

DETAILED DESCRIPTION

Operating physical qubits in a useful capacity requires the calibrationof many qubit parameters, e.g., more than fifty qubit parameters perqubit, some or all of which may depend on other qubit parameters andtheir calibrations. This specification describes an architecture andmethod for automatically calibrating multiple qubit parameters. Thearchitecture and methods model the system of qubit parameters and theirdependencies on one another using a directed graph comprising nodes anddirected edges, each node corresponding to a qubit parameter and eachdirected edge indicating a dependency of one qubit parameter on another.A maintain qubit calibration procedure and a diagnostic qubitcalibration procedure may be performed automatically according to thedirected graph, that is according to the qubit parameter dependencies,in order to monitor the values of the qubit parameters and correct anyqubits whose values are out of specification.

Example Operating Environment

FIG. 1 depicts an example system 100 for automatic qubit calibration.The example system 100 is an example of a system implemented asclassical or quantum computer programs on one or more classicalcomputers or quantum computing devices in one or more locations, inwhich the systems, components, and techniques described below can beimplemented.

The system includes a quantum computing device 102 in communication witha qubit calibration system 104 and a qubit and parameter attribute datastore 106. The qubit calibration system 104 is also in communicationwith the qubit and parameter attribute data store 106.

The quantum computing device includes one or more qubits 112. The one ormore qubits may be used to perform algorithmic operations or quantumcomputations. The specific realization of the one or more qubits dependson the type of algorithmic operations or quantum computations that thequantum computing device is performing. For example, the qubits mayinclude qubits that are realized via atomic, molecular or solid-statequantum systems. In other examples the qubits may include, but are notlimited to, superconducting qubits or semi conducting qubits. Forclarity, three qubits are depicted in FIG. 1, however the system mayinclude a larger number of qubits.

Each qubit may be associated with multiple qubit parameters. Qubitparameters may include values used in a parameterized quantum gate,e.g., voltage amplitude for a pi pulse or frequency of a readout pulse.For example, to tune a superconducting qubit, e.g., dispersively coupledto a readout resonator, using pi and pi/2 rotations and single shotreadout to discriminate between the 0 and 1 states, the superconductingqubit may be associated with multiple parameters including: readoutpulse frequency, readout pulse length, readout pulse power, readoutdiscrimination threshold to discriminate between the 0 and 1 statesbased on the readout signal, pi rotation qubit frequency, pi/2 rotationqubit frequency, pi pulse length, pi/2 pulse length, pi pulse amplitudeand pi/2 pulse amplitude. Some or all of the parameters associated witha qubit may require experimental determination. For example, in theabove list of qubit parameters, the readout pulse frequency, readoutpulse power, readout discrimination threshold to discriminate betweenthe 0 and 1 states based on the readout signal, pi rotation qubitfrequency, pi/2 rotation qubit frequency, pi pulse amplitude and pi/2pulse amplitude may require experimental determination. Other parametersmay be set a priori.

The multiple qubit parameters may in turn be associated with one or moreparameter attributes. The parameter attributes are dependent on thephysical realization of the respective qubit. For example, the parameterattributes for a qubit parameter may include acceptable values of thequbit parameter, e.g., acceptable values used in a parameterized quantumgate. If a qubit parameter value is determined to be an acceptablevalue, or if the qubit parameter value is determined to lie within atolerance value of what is accepted, the qubit parameter may bedetermined as being within specification. If a qubit value is determinedto be an unacceptable value, the qubit parameter may be determined asbeing out of specification. For example, a pi pulse parameter may bedetermined to be in specification if the rotation angle is within thetolerance value of 1% of a 180 degree rotation. A qubit parameter thatis out of specification may require calibration in order to ensure thatthe qubit parameter is within specification.

In another example, the parameter attributes for a qubit parameter mayinclude a measure of the stability of the parameter, or the drift timeof the parameter. After calibration, a qubit parameter may naturallydrift out of specification due to external factors such as temperature.The parameter attributes may therefore include a respective timeoutperiod which indicates a time period for which a parameter value shouldbe checked or calibrated.

As another example, the parameter attributes for a qubit parameter mayinclude the dependencies of a qubit parameter on other qubit parameters.A qubit parameter may depend on at least one other qubit parameter andthe calibration of the at least one other qubit parameter. For example,the qubit may be an atom and the parameters of the qubit may becalibrated using Rabi driving. There may be a number of parameters whichmust be previously calibrated for Rabi driving to run correctly. Forexample, Rabi driving may need to be performed at the qubit frequency,which must be determined in a different experiment, and the qubit statemust be measured using a readout operation which must itself becalibrated. Therefore, due to these parameter dependencies, before Rabidriving is performed, the qubit frequency calibration and readoutoperation should be calibrated.

The qubit parameters may be represented by a directed graph comprising anode for each parameter, e.g., node 108, and a directed edge for eachdependency, e.g., directed edge 110. For example, for a superconductingqubit as described above, the readout threshold parameter todiscriminate between the 0 and 1 state may be represented by a node thatis connected to a node representing a pi pulse parameter with a directededge indicating that the readout threshold parameter is dependent on thepi pulse parameter. As another example, a node that requires a pi pulsewill be connected to a node that calibrated the pi pulse amplitude,since a node that requires a pi pulse may depend on a node thatcalibrates the pi pulse amplitude. Each node in the directed graph mayhave an associated parameter and one or more associated experiments thatmay be used to determine a correct value for the parameter associatedwith the node. As depicted in FIG. 1, qubit 114 may be associated with anumber of qubit parameters, e.g., qubit parameter 108. For clarity arestricted number of qubit parameters, e.g., qubit parameter 108, areshown, however a qubit may be associated with a smaller or larger numberof qubit parameters.

The directed graph may include one or more root node, e.g., nodes withno dependencies, which define a root or “ancestor” direction of thegraph, e.g., the direction towards the root nodes with no dependencies,and a leaf or “child” direction of the graph, e.g., towards nodes thatare dependent or deeper in the graph.

The qubit calibration system 104 may include a classical or quantumprocessing device and communicates with the quantum computing device102. The qubit calibration system 104 may be configured to obtain a setof qubit parameters and data describing one or more attributes of theparameters in the set of qubit parameters, including dependencies ofqubit parameters on one or more other qubit parameters in the set ofqubit parameters, wherein the parameters and their dependencies on oneanother may be represented by a directed graph comprising a node foreach parameter and a directed edge for each dependency. The qubitcalibration system 104 may optionally store the data describing the oneor more attributes of the parameters in the set of qubit parameters in adata store, e.g., qubit parameter and attributes data store 106. In someimplementations the qubit calibration system 104 may receive some or allof the data describing the one or more attributes of the parameters inthe set of qubit parameters from a third party external to the automaticqubit calibration system 100, e.g., through user input.

The qubit calibration system 104 may use the data describing the one ormore attributes of the parameters in the set of qubit parameters toautomatically calibrate the qubit parameters. For example, the qubitcalibration system 104 may be configured to identify a qubit parameter,e.g., a qubit parameter that corresponds to a root node of the directedgraph, select a set of qubit parameters that includes the identifiedqubit parameter and one or more dependent qubit parameters, e.g., thequbit parameter that corresponds to the selected node and the qubitparameters of each descendant node. The set of qubit parameters may beordered, e.g., according to a node ancestry ordering. The qubitcalibration system 104 may calibrate the parameters in the set of qubitparameters in sequence according to the ordering. A process used by thequbit calibration system 104 to perform these operations is described inmore detail below with reference to FIGS. 2, 3 and 4.

The qubit calibration system 104 may be configured to performcalibration tests and calibration experiments on qubit parameters, e.g.,qubit parameter 108, in order to calibrate the qubit parameters of theone or more qubits 112 included in the quantum computing device 102,e.g., qubit 114. A calibration experiment may include a single, staticset of waveforms, where a single experiment may be repeated N times togather statistics on a probability distribution of a final qubit stateafter the experiment. For example, a calibration experiment may includeperforming a pi pulse followed by a readout pulse. A calibrationexperiment may also include an ensemble of experiment where waveformsare altered from experiment to experiment. An example ensemble ofexperiments includes a Rabi scan, e.g., a series of experimentsconsisting of a rotation pulse followed by a readout pulse, where eachexperiment would have a different amplitude for the rotation pulse. Suchan ensemble of experiments could be used to determine a relationshipbetween rotation amplitude and qubit state. Performing calibration testsand calibration experiments on qubit parameters is described in moredetail below with reference to FIGS. 3 and 4.

Programming the Hardware

FIG. 2 is a flowchart of an example process 200 for automatic qubitcalibration. For convenience, the process 200 will be described as beingperformed by a system of one or more classical or quantum computingdevices located in one or more locations. For example, a qubitcalibration system, e.g., the qubit calibration system 104 and of FIG.1, appropriately programmed in accordance with this specification, canperform the process 200.

The system obtains multiple qubit parameters and data describingdependencies of the multiple qubit parameters on one or more other qubitparameters (step 202). The data may also include data describing one ormore attributes of the multiple parameters. The parameters and theirdependencies on one another may be represented by a directed graphincluding a node for each parameter and a directed edge for eachdependency. The directed edges for each dependency indicate a dependenceof a node on a successful calibration of previous nodes. For example, anode corresponding to a pi pulse may depend on a successful calibrationof at least the pi pulse amplitude. In some examples, the directed graphmay include a node for multiple parameters and calibrations if relatedparameters are to be calibrated simultaneously.

In some implementations the directed graph may be acyclic. For example,the directed graph may be a tree with a root node and one or moredescendant nodes that are reached by proceeding from parent nodes tochild nodes. In other implementations the directed graph may be cyclic,for example when there are one or more co-dependent parameters.

The one or more attributes of the parameters in the obtained set ofqubit parameters may further include (i) a respective timeout period forwhich a calibration is to be performed, and (ii) acceptable thresholdsfor parameter values. For example, a timeout period for which acalibration is to be performed may be determined based on the “drifttime” of the parameter, that is a length of time in which the value ofthe parameter remains stable and does not drift out of specification.Acceptable thresholds for parameter values may vary according to theparameter type. For example, an acceptable threshold for a pi pulse maybe within 1% of a 180 degree rotation. The acceptable thresholds forparameter values may be used to determine whether a parameter is out ofspecification, e.g., whether a measurement of a parameter is producingnoise.

The system identifies a qubit parameter (step 204). For example, theidentified qubit parameter may be a qubit parameter that corresponds toa root node of the directed graph. For example, the directed graph mayhave one root node that is selected. In other examples the directedgraph may have multiple root nodes. In such a case the system mayrepeatedly select one of the qubit parameters that corresponds to a rootnode and perform the process 200 for each selected qubit parameter thatcorresponds to a root node. In further examples the identified qubitparameter may correspond to a most root node that has failed acalibration test, as described in more detail below.

The system selects a set of qubit parameters that includes theidentified qubit parameter and one or more dependent qubit parameters(step 206). For example, the set of qubit parameters may include theidentified qubit parameter that corresponds to the identified node andthe qubit parameters of each descendant node. The set of qubitparameters may be ordered, e.g., according to a node ancestry ordering,that is the set of qubit parameters may be ordered in a sequenceproceeding through the node dependencies, beginning with the identifiedroot node and ending with the youngest child.

For example, if the directed graph is acyclic and includes nodes A, B, Cand D, where A is the root node, node B depends on node A and nodes Cand D depend on node B, the selected set of qubit parameters with nodeancestry ordering may be {A, B, C, D}. In this example, an equivalentnode ancestry ordering may be {A, B, D, C}.

In some implementations the directed graph is cyclic and the number ofiterations between co-dependent parameters in the selected set of qubitparameters is capped to a predetermined threshold. For example, if thedirected graph is cyclic and includes nodes A, B, and C, where A is theroot node, node B depends on node A and node C, and node C depends onnode B, in principle the number of iterations between the co-dependentparameters B and C could be indefinite, that is the selected set ofqubit parameters with node ancestry ordering could be an infinite set{A, B, C, B, C, B, C, B, C, . . . }. In this situation, the systemcreates levels of optimization and caps the number of iterations betweenco-dependent parameters to a predetermined threshold. For example, thenumber of iterations may be capped to two and the selected set of qubitparameters with node ancestry ordering may be {A, B, C, B, C}.

The system processes one or more parameters in the set of qubitparameters in sequence according to the data describing the dependencies(step 208). In some implementations the system processes each of theparameters in the set of qubit parameters in sequence. For example, ifthe directed graph is acyclic and includes nodes A, B, C and D, where Ais the root node, node B depends on node A, and both nodes C and Ddepend on node B, the system may calibrate each parameter correspondingto nodes A, B, C and D in the set of qubit parameters {A, B, C, D} insequence according to the ordering A, B, C, D. Processing a qubitparameter in a set of qubit parameters in sequence according to anordering is described in more detail below with reference to FIGS. 3 and4.

Processing a Qubit Parameter

FIG. 3 is a flow diagram of an example qubit maintenance process 300 forprocessing a parameter in a set of qubit parameters. The qubitmaintenance process 300 may be performed for one or more parameters in aset of qubit parameters in sequence according to a qubit parameterordering. For convenience, the process 300 will be described as beingperformed by a system of one or more classical or quantum computingdevices located in one or more locations. For example, a qubitcalibration system, e.g., the qubit calibration system 104 and of FIG.1, appropriately programmed in accordance with this specification, canperform the process 300. The example process 300 may be considered adepth-first, recursive method of traversing a directed graph thatrepresents qubit parameters and their dependencies, e.g., the processmay be invoked on a node in a “leaf” or “child” direction of the graphthat is to be calibrated. The process may then start investigating thenode in the most “root” direction that may be likely to be out ofspecification based on information regarding the recent and currentstatus of the system, and works towards the node that originally had theprocess invoked on it. In some examples, the process 300 may beperformed as an initial system calibration, since the process naturallymoves in the order of least dependent towards a most dependent node, orin some cases it may be performed when a system has been idle sometimeafter a recent calibration.

The system performs a calibration test on the qubit parameter (step302). The calibration test determines whether the parameter is in or outof specification. The calibration test may include a set of metadataassociated with the directed graph, and may not include performing anexperiment on the qubit parameter. Rather, the calibration test may be alow cost test that may be used to determine a current state of theparameter, and in turn the current state of the system, by investigatingthe qubit parameter and previous calibrations. In some implementationsthe calibration test may include pass and fail criteria for determiningwhen a parameter is out of specification. For example, a calibrationtest on a qubit parameter may pass if a successful calibrationexperiment has been performed on the parameter within a respectivetimeout period. Calibration experiments are described in detail belowwith reference to steps 306 and 314. In another example, a calibrationtest may fail if the parameter has been flagged as having failed acalibration experiment. In a further example, a calibration test mayfail if a parameter dependence has been recalibrated within apredetermined amount of time, e.g., if an ancestor parameter, that is aparameter on which a current parameter depends, has been recalibratedsince the current parameter itself was calibrated. As another example, acalibration test may fail if the parameter dependence has been alteredwithin a predetermined amount of time, e.g., if the parameter nowdepends on a different parameter. In addition, a calibration test mayfail if a parameter that depends on the parameter has failed acalibration test.

The system performs a first calibration experiment or a diagnosticcalibration algorithm on the parameter when the calibration test fails.For a parameter in the set of qubit parameters for which the calibrationtest fails (step 304), the system performs a first calibrationexperiment on the parameter (step 306). A first calibration experimentmay include a method on a node that runs an ensemble of experiments anduses data from the ensemble of experiments to determine a state ofcalibration. For example, a first calibration experiment may include oneor more qubit experiments with respective measurement outcomes that areused to determine whether a parameter value is out of specification. Thefirst calibration experiment may be a low cost ensemble of experiments,where an experiment may include an input waveform and an output ofmeasured qubit states after applying the waveform. The first calibrationexperiment may be used to determine whether the qubit requires a fullcalibration. For example, a first calibration experiment may fail if ameasurement outcome of a corresponding qubit experiment indicatesparameter values that are out of specification. For example, a parametervalue may be out of specification if the first calibration experimentreturns noise and not an expected measurement result. Generally, a firstcalibration experiment may be used to answer questions about a qubitparameter, such as: is the parameter in specification? Is the firstcalibration experiment functioning correctly, e.g., is an ensemble ofexperiments functioning accurately?

For a parameter in the set of qubit parameters for which the firstcalibration experiment fails due to errors that are not attributable tothe parameter (step 308), the system performs a diagnostic calibrationalgorithm on the set of qubit parameters (step 310). Errors that are notattributable to the parameter may include errors that are attributableto ancestor parameters. For example, if a parameter requires a pi pulsebut a parameter on which it depends does not have a calibrated pi pulseamplitude, the parameter that requires a pi pulse may fail the firstcalibration experiment due to the out of specification pi pulseamplitude. Performing a diagnostic calibration algorithm on a set ofqubit parameters is described in more detail below with reference toFIG. 4.

For a parameter in the set of qubit parameters for which the firstcalibration experiment fails due to errors that are attributable to theparameter (step 312), the system performs a second calibrationexperiment on the parameter (step 314). Errors that are attributable tothe parameter may include drift in the control electronics or deviceparameters, or an ancestor parameter changing the optimal value for thisparameter, e.g., the pi amplitude may change for these reasons.

A second calibration experiment may include a method on a noderepresenting a parameter that runs an ensemble of experiments and usesthe data from the experiments to update the parameter associated withthe node. In some implementations the second calibration experiment isthe only experiment that alters the metadata associated with thedirected graph. A second calibration experiment may include one or morequbit experiments with respective measurement outcomes that are used toupdate the value of a parameter. The second calibration experiment maybe a high cost ensemble of experiments that are used to determine a newvalue for the qubit parameter. The output of a second calibrationexperiment may be interpreted as updating a qubit parameter value. Thesecond calibration experiment may require more time or more hardware tocomplete than the first calibration experiment, e.g., a firstcalibration experiment is of lower cost than a second calibrationexperiment.

For a parameter in the set of qubit parameters for which the secondcalibration experiment fails, the system aborts the processing of theparameters in the set of qubit parameters (step 316).

For a parameter in the set of qubit parameters that passes any of thecalibration test (as described in step 302), first calibrationexperiment (as described in step 306) or second calibration experiment,the system flags the parameter as a parameter that is withinspecification (step 318), that is the value of the parameter isacceptable and does not require further action/calibration. In thissituation, the system may return to step 208 described above withreference to FIG. 2, and select the next parameter in the set of qubitparameters in sequence according to the ordering. For example, if it isdetermined at step 318 that the qubit parameter corresponding to node Ain the sequence of nodes A, B, C, D has passed any of the calibrationtest, first calibration experiment or second calibration experiment, thesystem may flag the qubit parameter corresponding to node A as beingwithin specification, return to step 302 and perform a calibration teston node B.

FIG. 4 is a flow diagram of an example process 400 for performing adiagnostic calibration algorithm on a set of qubit parameters. Forconvenience, the process 400 will be described as being performed by asystem of one or more classical or quantum computing devices located inone or more locations. For example, a qubit calibration system, e.g.,the qubit calibration system 104 of FIG. 1, appropriately programmed inaccordance with this specification, can perform the process 400. Theexample process 400 may traverse a directed graph that represents qubitparameters and their dependencies by starting at a particular node andworking backwards through the dependencies of the node. The exampleprocess may assume that current or recent information regarding thesystem can no longer be trusted in a region near a node that calls theprocess. Therefore, the process 400 may traverse the graph entirelywithout the use of calibration tests and with the use of first andsecond calibration experiments.

The process 400 is an iterative process that includes iterativelyperforming one or more of the first calibration experiment and secondcalibration experiment on the qubit parameter and qubit parameters thatcorrespond to an ancestor node of the node of the qubit parameter untilthe qubit parameter and qubit parameters that correspond to an ancestornode of the node of the qubit parameter are determined to be withinspecification or the process is aborted. The process 400 maybe beiteratively performed until the qubit parameters that have failed thefirst calibration experiment, e.g., due to errors not attributable tothe parameter, and qubit parameters that correspond to an ancestor nodeof the node of the qubit parameter that has failed the first calibrationexperiment are determined to be within specification. The process 400 isa data driven diagnostic calibration algorithm.

The system performs a first calibration experiment on the qubitparameter (step 402). For example, if the directed graph is acyclic andincludes nodes A, B and D, where A is the root node, node B depends onnode A and node D depends on node B, where node D has failed the firstcalibration experiment due to errors not attributable to the parameterrepresented by node D, the system may perform a first calibrationexperiment on the qubit parameter corresponding to node D. Performing afirst calibration experiment is described in more detail above withreference to FIG. 3.

The system may determine whether the first calibration experiment on thequbit parameter has passed or not. In response to determining that thequbit parameter passes the first calibration experiment, the systemflags the parameter as a parameter that is within specification (step404).

In response to determining the qubit parameter fails the firstcalibration experiment due to errors that are not attributable to theparameter, the system selects an ancestor parameter as the qubitparameter (step 406). Errors that are not attributable to a parameterare described above with reference to FIG. 3. Continuing the exampleabove, if it is determined at step 406 that the qubit parametercorresponding to node D in the sequence of nodes A, B, D has failed thefirst calibration experiment due to errors that are not attributable tothe parameter corresponding to node D, the system may select an ancestornode of node D, e.g., node B, return to step 402 and perform a firstcalibration experiment on the ancestor node, e.g., node B.

In some examples, if the process 400 is performed on a root node of thedirected graph, e.g., a node that does not have an ancestor parameter,and it is determined at step 406 that the first calibration experimenthas failed due to errors not attributable to the parameter correspondingto the root node, the system may determine a system failure.

In response to determining the qubit parameter fails the firstcalibration experiment due to errors that are attributable to theparameter, the system performs the second calibration experiment on thequbit parameter (step 408). For example, continuing the example above,if it is determined in that the first calibration experiment performedon the qubit parameter corresponding to node D has failed due to errorsattributable to the parameter corresponding to node D, the systemperforms a second calibration experiment on the qubit parametercorresponding to node D. Both Errors that are attributable to aparameter and performing second calibration experiments are describedabove with reference to FIG. 3.

In response to determining the qubit parameter passes the secondcalibration experiment, the system flags the parameter as a parameterthat is within specification (step 410).

In response to determining the qubit parameter fails the secondcalibration experiment, the system aborts the processing of theparameters in the set of qubit parameters (step 412).

FIGS. 5A and 5B show example illustrations 502-510 of calibrating aresonance frequency using a first and second calibration experiment, asdescribed above with reference to FIGS. 3 and 4 and as performed by aqubit calibration system, e.g., the qubit calibration system 104 of FIG.1.

In order to determine an initial readout frequency for a qubit, it maybe physically required to perform an ensemble of experiments of areadout pulse and search for a Lorentzian frequency response of thereadout resonator. Illustration 502 shows an ideal Lorentzian frequencyresponse of a readout resonator centered at 6500 MHz.

Performing a first calibration experiment to the qubit may be used toverify that the resonator frequency is within specification, e.g.,within a given range around 6500 MHz, or out of specification. Since thefirst calibration experiment may be a low cost ensemble of experiments,instead of taking a large number of data points, the system may take asmall number of data points, e.g., 5 data points using 5 experiments,centered about the expected resonance frequency of 6500 MHz.Illustration 504 illustrates 5 data points using 5 experiments. Theresulting data may suggest that the resonance frequency is where it isexpected to be, e.g., at or close to 6500 MHz. In this case, the firstcalibration experiment would return “true”, e.g., the parameter haspassed the first calibration experiment.

If, for example, the resonator frequency had been previously calibratedto be at 6493 MHz and the first experiment was performed, the system mayproduce illustration 506, wherein the circle bullets represent theoutputs from the 5 experiments, as in illustration 504, and the verticalline represents the expected frequency of the resonator, e.g., 6493 MHz.In this case, the first experiment would indicate that the resonatorfrequency is not as expected, e.g., not at 6500 MHz, and the firstcalibration experiment would return “false”, e.g., the parameter hasfailed the first calibration experiment due to errors that are notattributable to the parameter.

As another example, in some cases a readout device may not befunctioning, e.g., due to faulty hardware. In this case, if the firstexperiment was performed, the system may produce illustration 508. Thedata shown in illustration 508 is nonsensical—the readout device isalways returning 0.5, independent of the frequency. In this case, thefirst experiment would return “false”, e.g., the calibration experimentfailed due to errors that are not attributable to the parameter—ratherthe errors are attributable to the readout device. In such cases, it maynot be possible to verify whether the parameter is in specification ornot. In some implementations the system may assume that the parameter isnot within specification.

Illustration 510 shows the results of a second calibration experimentused to calibrate the resonance frequency. As described above withreference to FIGS. 3 and 4, a second calibration experiment may includerunning an ensemble of experiments and using the data from theexperiments to update the parameter associated with the node.Illustration 510 shows the results of performing the ensemble ofexperiments to determine the resonator frequency.

Implementations of the digital and/or quantum subject matter and thedigital functional operations and quantum operations described in thisspecification can be implemented in digital electronic circuitry,suitable quantum circuitry or, more generally, quantum computationalsystems, in tangibly-embodied digital and/or quantum computer softwareor firmware, in digital and/or quantum computer hardware, including thestructures disclosed in this specification and their structuralequivalents, or in combinations of one or more of them. The term“quantum computational systems” may include, but is not limited to,quantum computers, quantum information processing systems, quantumcryptography systems, or quantum simulators.

Implementations of the digital and/or quantum subject matter describedin this specification can be implemented as one or more digital and/orquantum computer programs, i.e., one or more modules of digital and/orquantum computer program instructions encoded on a tangiblenon-transitory storage medium for execution by, or to control theoperation of, data processing apparatus. The digital and/or quantumcomputer storage medium can be a machine-readable storage device, amachine-readable storage substrate, a random or serial access memorydevice, one or more qubits, or a combination of one or more of them.Alternatively or in addition, the program instructions can be encoded onan artificially-generated propagated signal that is capable of encodingdigital and/or quantum information, e.g., a machine-generatedelectrical, optical, or electromagnetic signal, that is generated toencode digital and/or quantum information for transmission to suitablereceiver apparatus for execution by a data processing apparatus.

The terms quantum information and quantum data refer to information ordata that is carried by, held or stored in quantum systems, where thesmallest non-trivial system is a qubit, i.e., a system that defines theunit of quantum information. It is understood that the term “qubit”encompasses all quantum systems that may be suitably approximated as atwo-level system in the corresponding context. Such quantum systems mayinclude multi-level systems, e.g., with two or more levels. By way ofexample, such systems can include atoms, electrons, photons, ions orsuperconducting qubits. In many implementations the computational basisstates are identified with the ground and first excited states, howeverit is understood that other setups where the computational states areidentified with higher level excited states are possible. The term “dataprocessing apparatus” refers to digital and/or quantum data processinghardware and encompasses all kinds of apparatus, devices, and machinesfor processing digital and/or quantum data, including by way of examplea programmable digital processor, a programmable quantum processor, adigital computer, a quantum computer, multiple digital and quantumprocessors or computers, and combinations thereof. The apparatus canalso be, or further include, special purpose logic circuitry, e.g., anFPGA (field programmable gate array), an ASIC (application-specificintegrated circuit), or a quantum simulator, i.e., a quantum dataprocessing apparatus that is designed to simulate or produce informationabout a specific quantum system. In particular, a quantum simulator is aspecial purpose quantum computer that does not have the capability toperform universal quantum computation. The apparatus can optionallyinclude, in addition to hardware, code that creates an executionenvironment for digital and/or quantum computer programs, e.g., codethat constitutes processor firmware, a protocol stack, a databasemanagement system, an operating system, or a combination of one or moreof them.

A digital computer program, which may also be referred to or describedas a program, software, a software application, a module, a softwaremodule, a script, or code, can be written in any form of programminglanguage, including compiled or interpreted languages, or declarative orprocedural languages, and it can be deployed in any form, including as astand-alone program or as a module, component, subroutine, or other unitsuitable for use in a digital computing environment. A quantum computerprogram, which may also be referred to or described as a program,software, a software application, a module, a software module, a script,or code, can be written in any form of programming language, includingcompiled or interpreted languages, or declarative or procedurallanguages, and translated into a suitable quantum programming language,or can be written in a quantum programming language, e.g., QCL orQuipper.

A digital and/or quantum computer program may, but need not, correspondto a file in a file system. A program can be stored in a portion of afile that holds other programs or data, e.g., one or more scripts storedin a markup language document, in a single file dedicated to the programin question, or in multiple coordinated files, e.g., files that storeone or more modules, sub-programs, or portions of code. A digital and/orquantum computer program can be deployed to be executed on one digitalor one quantum computer or on multiple digital and/or quantum computersthat are located at one site or distributed across multiple sites andinterconnected by a digital and/or quantum data communication network. Aquantum data communication network is understood to be a network thatmay transmit quantum data using quantum systems, e.g., qubits.Generally, a digital data communication network cannot transmit quantumdata, however a quantum data communication network may transmit bothquantum data and digital data.

The processes and logic flows described in this specification can beperformed by one or more programmable digital and/or quantum computers,operating with one or more digital and/or quantum processors, asappropriate, executing one or more digital and/or quantum computerprograms to perform functions by operating on input digital and quantumdata and generating output. The processes and logic flows can also beperformed by, and apparatus can also be implemented as, special purposelogic circuitry, e.g., an FPGA or an ASIC, or a quantum simulator, or bya combination of special purpose logic circuitry or quantum simulatorsand one or more programmed digital and/or quantum computers.

For a system of one or more digital and/or quantum computers to be“configured to” perform particular operations or actions means that thesystem has installed on it software, firmware, hardware, or acombination of them that in operation cause the system to perform theoperations or actions. For one or more digital and/or quantum computerprograms to be configured to perform particular operations or actionsmeans that the one or more programs include instructions that, whenexecuted by digital and/or quantum data processing apparatus, cause theapparatus to perform the operations or actions. A quantum computer mayreceive instructions from a digital computer that, when executed by thequantum computing apparatus, cause the apparatus to perform theoperations or actions.

Digital and/or quantum computers suitable for the execution of a digitaland/or quantum computer program can be based on general or specialpurpose digital and/or quantum processors or both, or any other kind ofcentral digital and/or quantum processing unit. Generally, a centraldigital and/or quantum processing unit will receive instructions anddigital and/or quantum data from a read-only memory, a random accessmemory, or quantum systems suitable for transmitting quantum data, e.g.photons, or combinations thereof.

The essential elements of a digital and/or quantum computer are acentral processing unit for performing or executing instructions and oneor more memory devices for storing instructions and digital and/orquantum data. The central processing unit and the memory can besupplemented by, or incorporated in, special purpose logic circuitry orquantum simulators. Generally, a digital and/or quantum computer willalso include, or be operatively coupled to receive digital and/orquantum data from or transfer digital and/or quantum data to, or both,one or more mass storage devices for storing digital and/or quantumdata, e.g., magnetic, magneto-optical disks, optical disks, or quantumsystems suitable for storing quantum information. However, a digitaland/or quantum computer need not have such devices.

Digital and/or quantum computer-readable media suitable for storingdigital and/or quantum computer program instructions and digital and/orquantum data include all forms of non-volatile digital and/or quantummemory, media and memory devices, including by way of examplesemiconductor memory devices, e.g., EPROM, EEPROM, and flash memorydevices; magnetic disks, e.g., internal hard disks or removable disks;magneto-optical disks; CD-ROM and DVD-ROM disks; and quantum systems,e.g., trapped atoms or electrons. It is understood that quantum memoriesare devices that can store quantum data for a long time with highfidelity and efficiency, e.g., light-matter interfaces where light isused for transmission and matter for storing and preserving the quantumfeatures of quantum data such as superposition or quantum coherence.

Control of the various systems described in this specification, orportions of them, can be implemented in a digital and/or quantumcomputer program product that includes instructions that are stored onone or more non-transitory machine-readable storage media, and that areexecutable on one or more digital and/or quantum processing devices. Thesystems described in this specification, or portions of them, can eachbe implemented as an apparatus, method, or system that may include oneor more digital and/or quantum processing devices and memory to storeexecutable instructions to perform the operations described in thisspecification.

While this specification contains many specific implementation details,these should not be construed as limitations on the scope of what may beclaimed, but rather as descriptions of features that may be specific toparticular implementations. Certain features that are described in thisspecification in the context of separate implementations can also beimplemented in combination in a single implementation. Conversely,various features that are described in the context of a singleimplementation can also be implemented in multiple implementationsseparately or in any suitable sub-combination. Moreover, althoughfeatures may be described above as acting in certain combinations andeven initially claimed as such, one or more features from a claimedcombination can in some cases be excised from the combination, and theclaimed combination may be directed to a sub-combination or variation ofa sub-combination.

Similarly, while operations are depicted in the drawings in a particularorder, this should not be understood as requiring that such operationsbe performed in the particular order shown or in sequential order, orthat all illustrated operations be performed, to achieve desirableresults. In certain circumstances, multitasking and parallel processingmay be advantageous. Moreover, the separation of various system modulesand components in the implementations described above should not beunderstood as requiring such separation in all implementations, and itshould be understood that the described program components and systemscan generally be integrated together in a single software product orpackaged into multiple software products.

Particular implementations of the subject matter have been described.Other implementations are within the scope of the following claims. Forexample, the actions recited in the claims can be performed in adifferent order and still achieve desirable results. As one example, theprocesses depicted in the accompanying figures do not necessarilyrequire the particular order shown, or sequential order, to achievedesirable results. In some cases, multitasking and parallel processingmay be advantageous.

What is claimed is:
 1. A method, comprising: obtaining a plurality ofqubit parameters and data describing dependencies of the plurality ofqubit parameters on one or more other qubit parameters; identifying aqubit parameter; selecting a set of qubit parameters that includes theidentified qubit parameter and one or more dependent qubit parameters;and processing one or more parameters in the set of qubit parameters insequence according to the data describing dependencies, comprising, fora parameter in the set of qubit parameters: performing a firstcalibration experiment on the parameter, performing a second calibrationexperiment on the parameter when the first calibration experiment failsdue to errors that are attributable to the parameter, and aborting theprocessing of the one or more parameters in the set of qubit parametersin sequence when the second calibration experiment fails.
 2. The methodof claim 1, wherein performing a first calibration experiment on theparameter comprises: performing a first calibration experiment on theparameter when a calibration test fails.
 3. The method of claim 1,wherein the plurality of qubit parameters and the data describingdependencies of the plurality of qubit parameters on one or more otherqubit parameters are represented by a directed graph comprising a nodefor each qubit parameter and a directed edge for each dependency;identifying a qubit parameter comprises identifying a qubit parameterthat corresponds to a root node; selecting a set of qubit parametersthat includes the identified qubit parameter and one or more dependentqubit parameters comprises selecting a set of qubit parameters thatincludes the qubit parameter that corresponds to the root node and thequbit parameters of each descendant node, wherein the set of qubitparameters is ordered according to a node ancestry ordering; andprocessing one or more parameters in the set of qubit parameters insequence according to the data describing dependencies comprisesprocessing one or more parameters in the set of qubit parameters insequence according to the node ancestry ordering.
 4. The method of claim2, wherein performing a diagnostic calibration algorithm on theparameter comprises: iteratively performing one or more of the firstcalibration experiment and second calibration experiment on the qubitparameter and qubit parameters that correspond to an ancestor node ofthe node of the qubit parameter until the qubit parameter and qubitparameters that correspond to an ancestor node of the node of the qubitparameter are determined to be within specification or the process isaborted, the iteratively performing comprising, for each iteration:performing the first calibration experiment on the qubit parameter; inresponse to determining the qubit parameter passes the first calibrationexperiment, flagging the parameter as a parameter that is withinspecification; and in response to determining the qubit parameter failsthe first calibration experiment due to errors that are not attributableto the parameter, selecting an ancestor parameter as the qubitparameter.
 5. The method of claim 4, further comprising: in response todetermining the qubit parameter fails the first calibration experimentdue to errors that are attributable to the parameter, performing thesecond calibration experiment on the qubit parameter; in response todetermining the qubit parameter passes the second calibrationexperiment, flagging the parameter as a parameter that is withinspecification; and in response to determining the qubit parameter failsthe second calibration experiment, aborting the processing of theparameters in the set of qubit parameters.
 6. The method of claim 4,wherein errors that are not attributable to the parameter compriseerrors that are attributable to ancestor parameters.
 7. The method ofclaim 3, wherein the directed graph is cyclic and wherein the number ofiterations between co-dependent parameters in the selected set of qubitparameters is capped to a predetermined threshold.
 8. The method ofclaim 1, wherein the obtained data further comprises one or moreattributes of the parameters in the set of qubit parameters including(i) a respective timeout period for which a calibration is to beperformed, and (ii) acceptable thresholds for parameter values.
 9. Themethod of claim 1, wherein processing one or more parameters in the setof qubit parameters in sequence according to the data describingdependencies, further comprises, for a parameter in the set of qubitparameters: performing a calibration test on the parameter, wherein thecalibration test comprises pass and fail criteria for determining when aparameter is out of specification; and performing the first calibrationexperiment on the parameter when the calibration test fails.
 10. Themethod of claim 9, wherein the calibration test passes if a successfulfirst or second calibration experiment has been performed on a parameterwithin a respective timeout period.
 11. The method of claim 9, whereinthe calibration test fails if a parameter dependence has beenrecalibrated within a predetermined amount of time or the calibrationtest fails if a parameter dependence fails the calibration test.
 12. Themethod of claim 1, wherein the first calibration experiment comprisesone or more qubit experiments with respective measurement outcomes thatare used to determine when a parameter is out of specification.
 13. Themethod of claim 12, wherein the first calibration experiment fails ifthe measurement outcomes of the qubit experiments comprise parametervalues that are out of specification.
 14. The method of claim 1, whereinthe second calibration experiment comprises one or more qubitexperiments with respective measurement outcomes that are used to updatethe value of a parameter.
 15. The method of claim 1, wherein the secondcalibration experiment requires more time or more hardware to completethan the first calibration experiment.
 16. The method of claim 3,wherein the directed graph comprises a node for multiple parameters thatare calibrated simultaneously.
 17. The method of claim 3, wherein theroot node comprises a root node whose corresponding qubit parameterfails a calibration test.
 18. The method of claim 4, wherein thediagnostic calibration algorithm is data driven.
 19. The method of claim1, wherein processing one or more parameters in the set of qubitparameters in sequence according to the data describing dependenciescomprises processing each parameter in the set of qubit parameters insequence according to the data describing dependencies.
 20. An apparatuscomprising: one or more qubits a qubit calibration subsystem, configuredto: obtain a plurality of qubit parameters and data describingdependencies of the plurality of qubit parameters on one or more otherqubit parameters; identify a qubit parameter; select a set of qubitparameters that includes the identified qubit parameter and one or moredependent qubit parameters; process one or more parameters in the set ofqubit parameters in sequence according to the data describingdependencies, comprising, for a parameter in the set of qubitparameters: performing a first calibration experiment on the parameter,performing a second calibration experiment on the parameter when thefirst calibration experiment fails due to errors that are attributableto the parameter, and aborting the processing of the one or moreparameters in the set of qubit parameters in sequence when the secondcalibration experiment fails.